<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <link href="__ACSS__/style.css" rel="stylesheet" type="text/css" />
    <link href="__ACSS__/select.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="__AJS__/jquery.js"></script>
    <script type="text/javascript" src="__AJS__/jquery.idTabs.min.js"></script>
    <script type="text/javascript" src="__AJS__/select-ui.min.js"></script>
    <style>/*分页样式*/
    .pagination{text-align:center;margin-top:20px;margin-bottom: 20px;}
    .pagination li{margin:0px 10px; border:1px solid #e6e6e6;padding: 3px 8px;display: inline-block;}
    .pagination .active{background-color: #dd1a20;color: #fff;}
    .pagination .disabled{color:#aaa;}</style>
</head>
<body>

<div class="place">
    <span>位置：</span>
    <ul class="placeul">
        <li><a href="#">首页</a></li>
        <li><a href="#">系统设置</a></li>
    </ul>
    <input name="" type="button" class="scbtns" value="添加商品" style="text-align:right;"/>
</div>
<div class="formbody">
    <div id="usual1" class="usual">
        <div id="tab2" class="tabson">
            <ul class="seachform">
                <form action="{:url()}" method="post">
                    <li><input type="text" name="category_name" value="{$category_name}" size="15" placeholder="分类名称" class="scinput"/></li>
                    <li><input type="text" name="specification_name" value="{$specification_name}" size="15" placeholder="规格名" class="scinput"/></li>
                    <li><label>开始时间</label><input type="text" name="start" value="{$start}" class="date-time scinput" style="margin-right:0px;" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"></li>
                    <li><label>结束时间</label><input type="text" name="end" value="{$end}" class="date-time scinput" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"></li>
                    <li><label>状态</label>
                        <div class="vocation">
                            <select  name="status" class="select3">
                                <option value="0">选择状态</option>
                                <option value="1">有效</option>
                                <option value="2">无效</option>
                            </select>
                        </div>
                    </li>
                    <input type="submit" class="scbtn" value="搜索"/>
                </form>
            </ul>

            <table class="tablelist">
                <thead>
                <tr>
                    <th><input name="" type="checkbox" value="" checked="checked"/></th>
                    <th>商品类型</th>
                    <th>规格名</th>
                    <th>添加时间</th>
                    <th>是否有效</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>

                {volist name="goods_specification" id="vo"}
                <tr>
                    <td><input name="" type="checkbox" value="" /></td>
                    <td>{$vo['category_name']}</td>
                    <td>{$vo['name']}</td>
                    <td>{$vo['create_time']|date="Y-m-d H:i:s",###}</td>
                    <td>{if condition="$vo['status'] eq 1 "}是{else /}否{/if}</td>
                    <td><a href="{:url('GoodsSpecification/edit',['id'=>$vo['id']])}" class="tablelink">查看</a>
                        <a href="{:url('GoodsSpecification/delete',['id'=>$vo['id']])}" class="tablelink"> 删除</a></td>
                </tr>

                {/volist}
                </tbody>
            </table>

        </div>
    </div>
</div>

<script type="text/javascript" src="__WDP__/WdatePicker.js"></script>
<script type="text/javascript">
    $(function () {
        $(".select1").uedSelect({
            width : 345
        });
        $(".select2").uedSelect({
            width : 167
        });
        $(".select3").uedSelect({
            width : 100
        });
    })
    $('.tablelist tbody tr:odd').addClass('odd');
    //添加商品
    $(".scbtns").click(function () {
        window.location.href = "{:url('Goods/add')}";
    });
</script>
</body>
</html>
